{% extends 'Washer/index.html' %}

{% block title %}我的留言{% endblock %}

{% block subject %}

<header>
	<!--首页导航-->
	<ul class="layui-nav" style="display:flex;justify-content:center;">
		<li class="layui-nav-item"><a href="/washer/index" style="font-size:24px;">首页</a></li>
		<li class="layui-nav-item"><a href="/washapp/index" style="font-size:24px;">洗衣</a></li>
		<li class="layui-nav-item"><a href="/community/index" style="font-size:24px;">社区</a></li>
		<li class="layui-nav-item layui-this"><a href="/washer/login" style="font-size:24px;">我的</a></li>
	</ul>
</header>

<main>
	<div id="onview">
		<h1 style="color:#05295c;margin-bottom:10px;text-shadow:-2px -3px 5px #282601;">我在社区的留言</h1>
		{% load static %}
		{% for note in notebook.values %}
		<div class="onview"
			style="background-color:#e3e5e8;padding:14px;border-left:8px solid #708090;border-bottom:1px solid #708090;">
			<div style="font-size:18px;">
				<h3 style="color:#1E90FF;margin-bottom:3px;">{{note.title}}</h3>
				<p>
					<img src="{% static 'img/timer16.png' %}" alt="时间"
						style="margin-left:60%;">&nbsp;{{note.update_time}}
				</p>
				<p>&emsp;&emsp;{{note.content}}</p>
				<a style="font-size:20px;color:#DC143C;margin-left:60%;"
					href="/community/delnote/{{note.id}}/{{note.title}}"
					onclick="return confirm('\n此操作不可逆！\n\r确认删除该留言？')">删除</a>
			</div>
		</div>
		{% empty %}
		<h2>您还没有任何留言！</h2>
		<h2>如要留言/反馈请转到社区！</h2>
		{% endfor %}
	</div>
</main>

<footer>

</footer>

{% endblock %}
